package cn.micro.keep.accounts.mapstruct;

import cn.micro.keep.accounts.entity.AccountDimUser;
import cn.micro.keep.accounts.entity.dto.UserDTO;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.factory.Mappers;

@Mapper
public interface AccountDimUserMapstruct {
    AccountDimUserMapstruct INSTANCE = Mappers.getMapper(AccountDimUserMapstruct.class);

    AccountDimUser dtoToEntity(UserDTO dto, @MappingTarget AccountDimUser entity);
}
